package com.lzh.client;

import com.lzh.pojo.repVo.BaseResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author lkl
 * @Description
 * @Date 2022/3/30
 */
@FeignClient(name = "tg-hotel",path = "/tgHotel")
public interface HotelClients {

    @GetMapping("findAll")
    public BaseResp findAll();

    @GetMapping("findByName/{hotelName}")
    public BaseResp findByName(@PathVariable("hotelName") String hotelName);


    @GetMapping("findHomeByIdAndHotelId/{hotelId}/{homeId}")
    public BaseResp findHomeByIdAndHotelId(@PathVariable("hotelId") Integer hotelId, @PathVariable Integer homeId);

    @RequestMapping("updateHotelHomeNum/{homeId}/{num}")
    public BaseResp updateHotelHomeNum(@PathVariable Integer num, @PathVariable("homeId") Integer homeId);


    @RequestMapping("updateHotelHomeStatus/{homeId}/{status}")
    public BaseResp updateHotelHomeStatus(@PathVariable Integer status, @PathVariable("homeId") Integer homeId);


    @RequestMapping("findHomeById/{homeId}")
    public BaseResp findHomeById(@PathVariable("homeId") Integer homeId);
}
